public class demo1 {
    public int jumpFloorII (int number) {
        if(number == 1){
            return 1;
        }
        // write code here
        int[] dp = new int[number + 1];
        dp[1] = 1;
        dp[2] = 2;
        for (int i = 3; i < dp.length; i++) {
            for (int j = 1; j < i; j++) {
                dp[i] += dp[j];
            }
            dp[i] += 1;
        }
        return dp[number];
    }
}
